home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19990725-20000114
/
000188_news@columbia.edu _Wed Oct 13 09:55:41 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2000-01-13
|
3KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA07638
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 13 Oct 1999 09:55:41 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA09503
for kermit.misc@watsun.cc.columbia.edu; Wed, 13 Oct 1999 09:35:30 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Subject: Re: Kermit script or program to monitor serial line?
Date: 13 Oct 1999 13:35:29 GMT
Organization: Columbia University
Message-ID: <7u21r1$98s$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <7u0a86$1idi$1@mars.mcs.net>,
Richard Jordan <rjordan@Mars.mcs.net> wrote:
: We're using a Routeabout Access EW as a central router in a frame relay
: configuration; there are 9 remote sites coming in, each on its own PVC.
: Some of the links have been problematic (its the telco having glitches
: but sometimes the routabouts just will not recover without being re-
: started). The central site has an Alphacluster running OpenVMS V7.1
: and UCX V4.1 (latest ECO, and yes I wish I could upgrade them too).
:
: After having some batch jobs sitting on the alphas regularly pinging the
: remote routers and notifying us on a ping failure, the fact that it'd be
: much less load on the system/links/etc if we could just leave a process
: telneted to the central router listening to the logging console (or
: perhaps using a direct serial connection to the router console port
: doing the same thing) and sending notifications when the central router
: sees a topology change or other error (by error name/number). We would
: determine which messages to enable to provide just what we needed and
: have the program parse all incoming messages. Most would just be logged
: (no info messages, just warning and worse) and some would trigger an
: email/page/whatever.
:
: I'm hoping someone has sample code (maybe in BASIC?) for this type of
: application, but I'd appreciate opinions on whether something like
: this can be handled using Kermit scripting...
:
Yes.
: ... or if I'd be better off
: dealing with UCX programming from BASIC (we do not have C... or any
: other language, available).
:
No. Kermit has tens of thousands of lines of code already written to do
what you want. Why duplicate all that?
I'd recommend you start with C-Kermit 7.0:
http://www.columbia.edu/kermit/ck70.html
which is in the final stages of Beta testing, and is far advanced over the
previous version in terms of scripting capabilties, and also has numerous
VMS-specific improvements. Get a copy of the manual:
http://www.columbia.edu/kermit/ck60manual.html
to learn the script language, and also read the 7.0 release notes to learn
about the new features:
ftp://kermit.columbia.edu/kermit/test/text/ckermit2.txt
In brief outline, your application would:
set host <hostname-of-router>
if fail exit 1 Can't reach router.
while true {
(wait for a line to come in)
(parse the line)
(if it's a significant event, handle it)
(maybe make some kind of log entry)
}
For lots of C-Kermit script examples, see:
http://www.columbia.edu/kermit/ckscripts.html
- Frank